home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
Alignment.java
< prev
next >
Wrap
Text File
|
1998-08-07
|
2KB
|
62 lines
package com.symantec.itools.swing;
import java.beans.PropertyVetoException;
/**
* Alignment is an interface for components with labels that can be
* aligned left, centered, or right.
*/
public interface Alignment
{
//--------------------------------------------------
// constants
//--------------------------------------------------
/**
* Defines the "left" label text alignment style.
*/
public static final int ALIGN_LEFT = 0;
/**
* Defines the "center" label text alignment style.
*/
public static final int ALIGN_CENTERED = 1;
/**
* Defines the "right" label text alignment style.
*/
public static final int ALIGN_RIGHT = 2;
//--------------------------------------------------
// methods
//--------------------------------------------------
/**
* Sets the new label alignment style.
* @param style the new alignment style, one of ALIGN_LEFT,
* ALIGN_CENTERED, or ALIGN_RIGHT
* @exception PropertyVetoException
* if the specified property value is unacceptable
* @see #getAlignment
* @see #ALIGN_LEFT
* @see #ALIGN_CENTERED
* @see #ALIGN_RIGHT
*/
public void setAlignment(int style)
throws PropertyVetoException;
/**
* Gets the current label alignment style.
* @return the current alignment style, one of ALIGN_LEFT,
* ALIGN_CENTERED, or ALIGN_RIGHT
* @see #setAlignment
* @see #ALIGN_LEFT
* @see #ALIGN_CENTERED
* @see #ALIGN_RIGHT
*/
public int getAlignment();
}